﻿<%@ Page Language="C#" MasterPageFile="~/WorkFlow/WFConfigure/MpWorkflow.master" AutoEventWireup="true" Inherits="WorkFlow_WFConfigure_WFBillList" Title="Untitled Page" Codebehind="WFBillList.aspx.cs" %>

<%@ Register Assembly="OT.WebControls" Namespace="OT.WebControls" TagPrefix="OT" %>

<%@ MasterType VirtualPath="~/WorkFlow/WFConfigure/MpWorkflow.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
</script>


<div class="page_margin" style="margin:5px" >
    <table width="100%" cellspacing="0" cellpadding="0"> 
    <tr><td align="right">
       <input type=button class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:mOpenNewDlg("<%=WorkflowApply.Home%>WorkFlow/WFConfigure/WFBillEdit.aspx",600,300,"<%=WorkflowApply.Home%>","新增工作流单据")' name="Submit" value="新 增" >
        <asp:Button ID="btnDelete" runat="server" Text="删 除" OnClientClick="return mCanDelete('chkID','请选择要删除的记录！');" OnClick="btnDelete_Click"/>
        </td>
    </tr>
</table>
  <div style="width:100%; padding-top:3px; text-align:center"> 
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:mCheckAll(this,"chkID")' />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
                </ItemTemplate>                
                <ItemStyle Width="20px" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem,"SortSerial") %>
                </ItemTemplate>
                <ItemStyle Width="30px" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单据编码">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem,"ID") %>
                </ItemTemplate>
                <ItemStyle Width="60px" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单据名称">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem,"Name") %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="业务表名">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem,"BuTableName") %>
                </ItemTemplate>
                <ItemStyle  HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="主键字段">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem,"BuTableID") %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="流程状态字段">
                <ItemTemplate>
                   <%# DataBinder.Eval(Container.DataItem, "BuTableWFFlag")%>
                </ItemTemplate>
                <ItemStyle  HorizontalAlign="Center" />
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <%# GetLinkButton(DataBinder.Eval(Container.DataItem,"ID")+"") %>
                </ItemTemplate>
                <ItemStyle Width="80px" HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>
</div>
</div>    
    
</asp:Content>

